package com.atguigu.lease.web.app.mapper;

import com.atguigu.lease.model.entity.LeaseAgreement;
import com.atguigu.lease.web.app.vo.agreement.AgreementDetailVo;
import com.atguigu.lease.web.app.vo.agreement.AgreementItemVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author xiongkunYang
 * @description 针对表【lease_agreement(租约信息表)】的数据库操作Mapper
 * @createDate 2025-04-19 22:27:34
 * @Entity com.atguigu.lease.model.entity.LeaseAgreement
 */
@Mapper
public interface LeaseAgreementMapper extends BaseMapper<LeaseAgreement> {

    /**
     * 根据手机号查询租约信息列表
     *
     * @param phone 手机号
     * @return 租约信息列表
     */
    List<AgreementItemVo> selectAgreementItemListByPhone(String phone);

    /**
     * 根据id查询租约详细信息
     *
     * @param id 租约id
     * @return 封装了租约详细信息的Vo对象
     */
    AgreementDetailVo selectAgreementDetailById(Long id);
}




